<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
	        $videos= M('videos');//实例化news对象
	    
	 		// dump($lost->count())
	 		$res2=$videos->where("videoarea='日本'")->order("vid desc")->limit(2)->select();  //查询未结的失物启事，同时获取所有置顶的失物启事
	 		$res1=$videos->order("uploadtime desc")->limit(3)->select(); 
	 		$res=$videos->order("createtime desc")->limit(5)->select();
	 		$this->videos=$res;
	 		$this->phvideos=$res1;
	 		$this->hdvideos=$res2;
	 		// dump($res);
	 	 
	 		
	 		$this->display();
	 	}
    }